Skip to content

Conversation

@pivotalneutron
Copy link

For queries without subqueries (ie: UPDATE), calling SqlQuery#table raises a
NoMethodError, since @subqueries is an empty array and [].first returns nil.
This happens if such a query triggers a warning (see SqlQuery#warn).

(We wanted to include a unit test, but they don't seem to be in working order.)

Arzumy MD & Mike Mazur added 2 commits May 5, 2011 17:41
For queries without subqueries (ie: UPDATE), calling SqlQuery#table raises a
NoMethodError, since @subqueries is an empty array and [].first returns nil.
This happens if such a query triggers a warning (see SqlQuery#warn).
jdelStrother pushed a commit to jdelStrother/query_reviewer that referenced this pull request Sep 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant